Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Dec 30, 2025

Close #497

Description

context: #554 (comment)

This branch brings the changes from #556 and #562 to a branch based on master

Preview

backup_and_high-balance.webm
notifications_and_quickpay.webm
critical_update.webm
internal_navigation.webm

QA Notes

Same tests from #562

@jvsena42 jvsena42 self-assigned this Dec 30, 2025
@ovitrif ovitrif changed the title Fix/uniffy timed sheet behavior for master fix: unify timed sheet behavior for master Dec 31, 2025
@jvsena42 jvsena42 marked this pull request as ready for review December 31, 2025 11:05
@jvsena42
Copy link
Member Author

for this case, the user now have to leave the home and return to trigger the backup sheet
https://github.com/synonymdev/bitkit-android/actions/runs/20617706363/job/59213780179?pr=565

@ovitrif
Copy link
Collaborator

ovitrif commented Dec 31, 2025

@jvsena42 Can I review this?

@jvsena42 jvsena42 requested a review from ovitrif December 31, 2025 13:37
@jvsena42
Copy link
Member Author

jvsena42 commented Dec 31, 2025

@jvsena42 Can I review this?

yes, was waiting for CI, but need some updates from E2E

@piotr-iohk

This comment was marked as resolved.

@piotr-iohk

This comment was marked as resolved.

@jvsena42

This comment was marked as resolved.

@jvsena42

This comment was marked as resolved.

@piotr-iohk
Copy link
Collaborator

Whoops... sorry, I was on previous branch fix/uniffy-timed-sheet-behavior 🤦‍♂️

Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tAck

approved with nit-only type of comments

@@ -0,0 +1,21 @@
package to.bitkit.utils.timedsheets
Copy link
Collaborator

@ovitrif ovitrif Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we don't need another package only for this.

nit: Also, we should collectively put shared code in "shared", not utils.

nit: and lastly, I things that belong together should stay together, this global scope function is better placed in TimedSheetManager class, which should also include the TimedSheetItem definition.


suspend fun shouldShow(): Boolean
suspend fun onShown()
suspend fun onDismissed()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Name should not be past tense as per callback naming best practices.

@@ -0,0 +1,21 @@
package to.bitkit.utils.timedsheets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: package of all these should be .ui.sheets.* where it could be grouped into *sheets.timed if desired.

object TimedSheetModule {

@Provides
fun provideTimedSheetManagerProvider(): (CoroutineScope) -> TimedSheetManager {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we really need a provider for this?!

Can't we maybe inherit BaseCoroutineScope?!

AFAIU delegation using by CoroutineScope(coroutineContext) is the recommended best practice

@jvsena42
Copy link
Member Author

jvsena42 commented Jan 3, 2026

Better wait for #554 merge to apply these suggestions to don't cause a big conflict, @ovitrif WDYT?

@ovitrif
Copy link
Collaborator

ovitrif commented Jan 3, 2026

Better wait for #554 merge to apply these suggestions to don't cause a big conflict, @ovitrif WDYT?

Good idea. Totally agree, none of my comments are as critical or relevant as maybe getting the nav3 refactor merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify timesheets behavior on Android to match iOS

4 participants